package com.jinjunhuang.memoryopt;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;

/**
 * @author jianjunhuang.me@foxmail.com
 *         create on 2017/11/16.
 */

public class InnerActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.inner_activity);
    }

    private void show() {
        Toast.makeText(this, "show", Toast.LENGTH_LONG).show();
    }

    private static void staticShow() {

    }

    //this$0
    class NormallInnerClass {
        private void innerShow() {
            show();
        }
    }

    static class StaticInnerClass {
        private void innerShow() {
            //show();
            staticShow();
        }
    }
}
